package gao.xiaolei.entity;

import lombok.Data;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

@Entity
@Data
public class UserRole {
    @EmbeddedId
    private UserRoleId id;

    public UserRole(String userId,String roleId) {
        this.id=new UserRoleId(userId,roleId);
    }

    public UserRole() {
    }
}
